/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.upn.sigemfi.gar.be;

import edu.upn.sigemfi.seg.be.Empleado;
import java.io.Serializable;
import java.util.List;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.JoinColumn;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;

/**
 *
 * @author Freddy
 */
@Entity
@Table(name = "GAR_TASADOR")
    @NamedQueries({@NamedQuery(name = "Tasador.findAll", query = "SELECT t FROM Tasador t")
})

public class Tasador implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "FID_PERSONA_NATURAL", nullable = false)
    private Long fidPersonaNatural;
   

    public Tasador() {
    }

    public Long getFidPersonaNatural() {
        return fidPersonaNatural;
    }

    public void setFidPersonaNatural(Long fidPersonaNatural) {
        this.fidPersonaNatural = fidPersonaNatural;
    }



    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Tasador other = (Tasador) obj;
        if (this.fidPersonaNatural != other.fidPersonaNatural && (this.fidPersonaNatural == null || !this.fidPersonaNatural.equals(other.fidPersonaNatural))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 89 * hash + (this.fidPersonaNatural != null ? this.fidPersonaNatural.hashCode() : 0);
        return hash;
    }

    @Override
    public String toString() {
        return super.toString();
    }

}
